import request from "@/utils/request";
import { DepartContentSectionQuery, DepartContentSectionPageResult, DepartContentSectionForm, DepartContentSection } from "./model";

/**
 * 机构栏目内容API
 */
class DepartContentSectionAPI {


  /**
   * 获取机构栏目内容列表
   * @param data 
   * @returns 
   */
  static getList(data: DepartContentSectionForm) {
    return request<any, DepartContentSection[]>({
      url: "/departContentSection/getList",
      method: "post",
      data: data,
    });
  }

  /**
   * 保存机构栏目内容
   * @param data 
   * @returns 
   */
  static edit(data: DepartContentSectionForm) {
    return request({
      url: "/departContentSection/edit",
      method: "post",
      data: data,
    });
  }

}

export default DepartContentSectionAPI;
